﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Security.Permissions;
using System.Security;
using System.Diagnostics;

namespace InstallVisualizer
{
 
    class Program
    {

        static void Main(string[] args)
        {


            var VS100COMNTOOLS = Environment.GetEnvironmentVariable("VS100COMNTOOLS");

            var source = args[0];

            if (string.IsNullOrWhiteSpace(VS100COMNTOOLS))
            {
                Console.WriteLine("Can NOT find install dir for vs 2010");
                Console.ReadKey();
            }
            else
            {
                var target = Path.Combine(VS100COMNTOOLS.Remove(VS100COMNTOOLS.Length - 6, 6), @"Packages\Debugger\Visualizers\MvcRouteVisualizer.dll");

                File.Copy(source, target, true);

            }

            
        }
    }
}
